const { defineConfig } = require('@vue/cli-service')
const path = require("path");
function resolve(dir) {
  return path.join(__dirname, dir);
}
module.exports = defineConfig({
  transpileDependencies: true,
  //是否开启eslint保存检测
  lintOnSave:false,
  publicPath: process.env.NODE_ENV === "production" ? "./" : "./",
  outputDir: "dist",
  assetsDir: "static",
  // 别名设置
  chainWebpack: config => {
    config.resolve.alias
      .set("@", resolve("src"));
  },  
})
